Skip to content

feat(devops): take the application version from the portal - #7

Open
tibou-tech wants to merge 1 commit into
mainfrom
feat/devops-release-version-CU-1dfrr59uv0w
Open

tibou-tech wants to merge 1 commit into
mainfrom
feat/devops-release-version-CU-1dfrr59uv0w

Conversation

@tibou-tech

Copy link
Copy Markdown
Collaborator

What changes

  • APP_VERSION and devops.version are no longer read. An application that still has them ignores them.
  • The version is the latest GitHub release. The repositories are private, so an application cannot read its releases without a GitHub token. The portal already reads them and already calls each application. It will send the tag in the X-Release-Version header of the health request.
  • The package keeps it in the cache for seven days, renewed at each request. Only 1.2.3 and v1.2.3 are accepted, and only after the token check.
  • The developer console shows the version, or hides the line when none is known.
  • sprintify_version keeps its name in the health response, with the received version or null.

To decide

Removing a documented config key is a contract change: the strict rule of CONTRIBUTING.md asks for a major version of every package, with an UPGRADE.md. Nothing breaks in an application that keeps the key, and the portal does not read the value, so a minor is also possible. The changelog stays under Unreleased until that choice is made.

To know

  • The portal does not send the header yet. Until it does, the console shows no version.
  • An application the portal does not call (a staging site, for example) has no version.
  • An application that published the console view keeps its own copy of it.

Tests

35 tests of devops, Pint and PHPStan pass on PHP 8.4. The other Laravel versions run in the CI of this pull request.

🤖 Generated with Claude Code

The version is the latest GitHub release. The portal sends it in the
X-Release-Version header of the health request, the package keeps it for
seven days and the developer console shows it. Without a known version the
console hides the line. APP_VERSION and devops.version are no longer read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants